<template>
  <div class="top">
    <el-breadcrumb v-if="$route.path !== '/home'">
      <el-breadcrumb-item class="sho">首页</el-breadcrumb-item>
      <el-breadcrumb-item class="me">博客管理</el-breadcrumb-item>
      <el-breadcrumb-item class="ta">{{
        $route.meta.title
      }}</el-breadcrumb-item>
    </el-breadcrumb>
    <div v-if="$route.path == '/home'" class="nav">
      <div>这里是主页</div>
      <div>
        <el-dropdown>
          <span class="el-icon-user">admin<i class="el-icon-arrow-down el-icon--right"></i>
          </span>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item icon="el-icon-edit">修改密码</el-dropdown-item>
            <el-dropdown-item icon="el-icon-delete">退出登录</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  mounted() {},
  methods: {},
};
</script>

<style lang='scss' scoped>
.top {
  width: 100%;
  height: 60px;
  // background: green;
  border: 1px solid #111;
}
.sho {
  line-height: 60px;
  padding-left: 20px;
  font-weight: 800;
}
.me {
  line-height: 60px;
  font-weight: 800;
}
.ta {
  line-height: 60px;
}
.nav{
    width: 100%;
    display: flex;
    padding: 0 30px;
    line-height: 60px;
    box-sizing: border-box;
    justify-content: center;
    justify-content: space-between;
}
</style>
